package com.appspot.menox3secandroid2011.model;

import java.io.Serializable;
import java.util.Date;

import com.google.appengine.api.datastore.Key;

import org.slim3.datastore.Attribute;
import org.slim3.datastore.Model;

@Model(schemaVersion = 1)
public class KANRISYA_MST implements Serializable {

    private static final long serialVersionUID = 1L;

    @Attribute(primaryKey = true)
    private Key key;

    @Attribute(version = true)
    private Long version;

    private String userid;
    private String userName;
    private String sagyoMKbn;
    private String kaisyaMKbn;
    private String nyutaijoMKbn;
    private String genbaMKbn;
    private String kanrisyaMKbn;
    private String rirekiseachkubn;
    private String toroku_user;
    private Date toroku_Date;
    private String kosin_user;
    private Date kosin_date;
    private String delete_user;
    private Date delete_date;
    private String delete_flag;

    /**
     * Returns the key.
     *
     * @return the key
     */
    public Key getKey() {
        return key;
    }

    /**
     * Sets the key.
     *
     * @param key
     *            the key
     */
    public void setKey(Key key) {
        this.key = key;
    }

    /**
     * Returns the version.
     *
     * @return the version
     */
    public Long getVersion() {
        return version;
    }

    /**
     * Sets the version.
     *
     * @param version
     *            the version
     */
    public void setVersion(Long version) {
        this.version = version;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((key == null) ? 0 : key.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        KANRISYA_MST other = (KANRISYA_MST) obj;
        if (key == null) {
            if (other.key != null) {
                return false;
            }
        } else if (!key.equals(other.key)) {
            return false;
        }
        return true;
    }

    /**
     * @param userid セットする userid
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * @return userid
     */
    public String getUserid() {
        return userid;
    }

    /**
     * @param userName セットする userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param sagyoMKbn セットする sagyoMKbn
     */
    public void setSagyoMKbn(String sagyoMKbn) {
        this.sagyoMKbn = sagyoMKbn;
    }

    /**
     * @return sagyoMKbn
     */
    public String getSagyoMKbn() {
        return sagyoMKbn;
    }

    /**
     * @param kaisyaMKbn セットする kaisyaMKbn
     */
    public void setKaisyaMKbn(String kaisyaMKbn) {
        this.kaisyaMKbn = kaisyaMKbn;
    }

    /**
     * @return kaisyaMKbn
     */
    public String getKaisyaMKbn() {
        return kaisyaMKbn;
    }

    /**
     * @param nyutaijoMKbn セットする nyutaijoMKbn
     */
    public void setNyutaijoMKbn(String nyutaijoMKbn) {
        this.nyutaijoMKbn = nyutaijoMKbn;
    }

    /**
     * @return nyutaijoMKbn
     */
    public String getNyutaijoMKbn() {
        return nyutaijoMKbn;
    }

    /**
     * @param genbaMKbn セットする genbaMKbn
     */
    public void setGenbaMKbn(String genbaMKbn) {
        this.genbaMKbn = genbaMKbn;
    }

    /**
     * @return genbaMKbn
     */
    public String getGenbaMKbn() {
        return genbaMKbn;
    }

    /**
     * @param kanrisyaMKbn セットする kanrisyaMKbn
     */
    public void setKanrisyaMKbn(String kanrisyaMKbn) {
        this.kanrisyaMKbn = kanrisyaMKbn;
    }

    /**
     * @return kanrisyaMKbn
     */
    public String getKanrisyaMKbn() {
        return kanrisyaMKbn;
    }

    /**
     * @param rirekiseachkubn セットする rirekiseachkubn
     */
    public void setRirekiseachkubn(String rirekiseachkubn) {
        this.rirekiseachkubn = rirekiseachkubn;
    }

    /**
     * @return rirekiseachkubn
     */
    public String getRirekiseachkubn() {
        return rirekiseachkubn;
    }

    /**
     * @param toroku_user セットする toroku_user
     */
    public void setToroku_user(String toroku_user) {
        this.toroku_user = toroku_user;
    }

    /**
     * @return toroku_user
     */
    public String getToroku_user() {
        return toroku_user;
    }

    /**
     * @param toroku_Date セットする toroku_Date
     */
    public void setToroku_Date(Date toroku_Date) {
        this.toroku_Date = toroku_Date;
    }

    /**
     * @return toroku_Date
     */
    public Date getToroku_Date() {
        return toroku_Date;
    }

    /**
     * @param kosin_user セットする kosin_user
     */
    public void setKosin_user(String kosin_user) {
        this.kosin_user = kosin_user;
    }

    /**
     * @return kosin_user
     */
    public String getKosin_user() {
        return kosin_user;
    }

    /**
     * @param kosin_date セットする kosin_date
     */
    public void setKosin_date(Date kosin_date) {
        this.kosin_date = kosin_date;
    }

    /**
     * @return kosin_date
     */
    public Date getKosin_date() {
        return kosin_date;
    }

    /**
     * @param delete_user セットする delete_user
     */
    public void setDelete_user(String delete_user) {
        this.delete_user = delete_user;
    }

    /**
     * @return delete_user
     */
    public String getDelete_user() {
        return delete_user;
    }

    /**
     * @param delete_date セットする delete_date
     */
    public void setDelete_date(Date delete_date) {
        this.delete_date = delete_date;
    }

    /**
     * @return delete_date
     */
    public Date getDelete_date() {
        return delete_date;
    }

    /**
     * @param delete_flag セットする delete_flag
     */
    public void setDelete_flag(String delete_flag) {
        this.delete_flag = delete_flag;
    }

    /**
     * @return delete_flag
     */
    public String getDelete_flag() {
        return delete_flag;
    }
}
